package com.xxgc.eow.service.impl;

import com.xxgc.eow.entity.Topicanswer;
import com.xxgc.eow.mapper.TopicanswerMapper;
import com.xxgc.eow.service.ITopicanswerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 题解 服务实现类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
@Service
public class TopicanswerServiceImpl extends ServiceImpl<TopicanswerMapper, Topicanswer> implements ITopicanswerService {

    @Resource
    private TopicanswerMapper topicanswerMapper;

    @Override
    public List<Topicanswer> getTopicAnswerByTopicId(Integer topicId) {
        return topicanswerMapper.selectTopicAnswerByTopicId(topicId);
    }
}
